package com.distribution.system.domain.converter;


import com.distribution.system.domain.bo.ProductFlowInfo;
import com.distribution.system.domain.dto.ChoosePhoneDTO;
import com.distribution.system.domain.dto.PlaceOrderDTO;
import com.distribution.system.domain.dto.SendCodeDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.time.LocalDateTime;
import java.util.Objects;

@Mapper(componentModel = "spring", imports = {LocalDateTime.class, Objects.class})
public interface ProductFlowInfoConverter {
    ProductFlowInfo placeOrderDtoToProductFlowInfo(PlaceOrderDTO placeOrderDTO);

    ProductFlowInfo choosePhoneDtoToProductFlowInfo(ChoosePhoneDTO choosePhoneDTO);

    ProductFlowInfo sendCodeDtoToProductFlowInfo(SendCodeDTO sendCodeDTO);
}
